package com.tecbog.user;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.util.concurrent.CountDownLatch;

@EnableDubbo
@SpringBootApplication
public class UserApplication {

    private static CountDownLatch countDownLath = new CountDownLatch(1);

    public static void main(String[] args) throws InterruptedException {
        SpringApplication.run(UserApplication.class,args).registerShutdownHook();
        countDownLath.await();
    }
}
